#ifndef PACKETSENDER_HPP
#define PACKETSENDER_HPP

#include <string>
#include "blepacket.hpp"

#if defined(_WIN32)
#pragma message("Warning: Windows detected.")
#include <WinSock2.h>
#include <WS2tcpip.h>
#pragma comment(lib, "ws2_32.lib")
#else
#include <unistd.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netdb.h>
#endif

class packetsender
{
public:
	packetsender(std::string ip_addr);
	~packetsender();
	void send(lell_packet pkt);

private:
	sockaddr_in addrSrv;
	int s;
	char buffer[2000];
};


#endif